package com.pointi.test.twittclonetest.util.http;

import java.util.HashMap;
import java.util.Map;

import android.util.Log;

import com.pointi.test.twittclonetest.TwittCloneTestActivity;

public class ParseBodyHelper {
	public static Map parseAuthBody(String body){
		Map rtnMap = null;
		
		
		if(body == null || body.length() <= 0){
			return rtnMap;
		}
		
		rtnMap = new HashMap();
		
		String alStrListbody[]  = body.split("&");
		
		for(String listBody: alStrListbody){
			String keyValue[] = listBody.split("=");
			Log.d(TwittCloneTestActivity.LOG_TAG, "KEY["+keyValue[0]+"],VALUE["+keyValue[1]+"]");
			rtnMap.put(keyValue[0], keyValue[1]);
		}
		return rtnMap;
		
	}
}
